package tool

type Err struct {
	Error string `json:"error"`
	ErrorCode string `json:"error_code"`
}

type ErrResponse struct {
	HttpSc int
	Error Err
}

var (
	ErrorRequestBodyParseFailed = ErrResponse{HttpSc: 400,Error: Err{Error: "Request body is not correct",ErrorCode: "001",}}
	ErrorNotAuthUser = ErrResponse{
		HttpSc: 401,
		Error: Err{
			Error: "user authentication failed",
			ErrorCode: "002",
		},
	}
	)
